﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;

namespace TaskbarNotifierDemo
{
    public partial class Login : Form
    {
        Incident inc = new Incident();
        QueryBuilder query = new QueryBuilder();
        Utilitario util = new Utilitario();

        public Login()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //DataTable datos = query.EjecutarQuery("Select * from usuario where id_usuario='"+textBox1.Text+"' and password='"+ util.Encriptar_Password(maskedTextBox1.Text)+"'");
            //if (datos.Rows.Count > 0)
            //{
                inc.usr = textBox1.Text;
                inc.ShowDialog();
            //}
            //else
              //  MessageBox.Show("El usuario no existe");
        }
    }
}
